<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{$title}</title>
<link rel="stylesheet" href="Res/boot/css/bootstrap.min.css" type="text/css" media="screen" />
<script type="text/javascript" src="Res/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="Res/js/jquery.cookie.js"></script>
<link rel="stylesheet" href="Res/css/global.css" type="text/css" />
</head>

<body>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 panel panel-info">  
            <span class="cp_title">{$title}</span>
            <div class="add_cp">
                    <a href="index.php?c=storymodule&m=view">+返回{$title}列表</a>
            </div>        
            <div class="table_con" style="margin: 0 auto;text-align: center;">
                <form class="form-horizontal" role="form" action="index.php?c=storymodule&m=new_create" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">来源名称：</label>
                    <div class="col-sm-5">
                        <select class="form-control" id="sid" name="sid">
                            <option value="0">选择来源</option>
                            {foreach from=$data item=row}
                            {if $cookie.sid eq $row.ssid}
                            <option value="{$row.ssid}" selected="true">{$row.sname}</option>
                            {else}
                            <option value="{$row.ssid}">{$row.sname}</option>
                            {/if}
                            {/foreach}
                        </select>
                    </div>
                </div>    
                <div class="form-group">
                    <label class="col-sm-2 control-label">模块名称：</label>
                    <div class="col-sm-5">
                        <input type="text"  value="{$cookie.mname}" autofocus="autofocus" required="required" 
                               class="form-control" autocomplete="on" id="mname" name="mname" placeholder="模块名称" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">模块URL：</label>
                    <div class="col-sm-5">
                        <input type="url"  value="{$cookie.url}" class="form-control" required="required" 
                               id="url" name="url" autocomplete="on" placeholder="模块URL" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-5">
                        <input type="hidden" value="{$token}" name="token" />
                        <button type="submit" class="btn btn-primary btn-lg btn-block">添加</button>            
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
{literal}
<script>    
$(function(){
    
});
</script>
{/literal}
</script>
</body>
</html>
